Ulm Ux Api icon

Ulm Ux Api

(1 review)

TMF666 Retrieve billingAccount by id

Uses Cases

This usecase is used to retrieve the Customer's billingAccount Details based on the account number.

URL

https://nonprod.esb.lla.com/dev/ulm-ux/ulm-ux/v1/{businessId}/billingAccount/{id}

###

cURL Request

curl --location 'https://nonprod.esb.lla.com/dev/ulm-ux/ulm-ux/v1/PR/billingAccount/8211990010031508' \
--header 'client_id: xxxxxxx' \
--header 'client_secret: xxxxxxx' \
--header 'X-Correlation-ID: 2-23d2c8d0-2fb4-11ef-94fc-005056a2a8c5'

URL PARAMS

nametypedescriptionrequired
businessIdstring2 letter ISO 3166 country code (TT, BB, JM, PA, etc.) identifying the business unit.Y
serviceIdstringUnique identifier of the service.Y
nametypedescriptionrequired
client_idstringThe client_id identifying the channel. Minimum characters: 5Y
client_secretstringPassword associated with the client_id. Minimum characters: 5Y
X-Correlation-IDstringIdentifier that correlates HTTP request between a client and server.
Any identification model (UUDI, checksum, etc.) can be used, as long as it is a unique value to differentiate a transaction.
Y

Body

NOTE:

  1. All Use Cases are listed and referenced to their examples on Use Case section
  2. All definitions are described on RAML, inside of Anypoint Design Center.
Definitions

Possible response success

This section defines all the possible data structures received by the client and that must be considered satisfactory at the time of responding to the method.

[ 200 ]

OK - request processed successfully, response body contains an entity corresponding to the requested resource.

NOTE:

  1. All Use Cases are listed and referenced to their examples on Use Case section
  2. All definitions are described on RAML, inside of Anypoint Design Center.

Response

In this section all the possible data structures received by the client at the moment of responding the method are defined.


{
    "id": "8211990010031508",
    "accountType": "RES",
    "description": "MARIA ARIAS TABERA",
    "lastModified": "2026-02-05T00:00:00.000-04:00",
    "name": "MARIA ARIAS TABERA",
    "paymentStatus": "V",
    "state": "NORMAL",
    "accountBalance": [
        {
            "amount": {
                "unit": "USD",
                "value": 0.00
            },
            "balanceType": "ReceivableBalance",
            "validFor": {
                "startDateTime": "2026-01-18T00:00:00.000-04:00",
                "endDateTime": "2026-02-17T00:00:00.000-04:00"
            }
        },
        {
            "amount": {
                "unit": "USD",
                "value": 154.07
            },
            "balanceType": "LastPaymentAmount",
            "validFor": {
                "endDateTime": "2026-02-05T00:00:00.000-04:00"
            }
        }
    ],
    "accountRelationship": [
        {
            "relationshipType": "contains",
            "account": {
                "id": "8211990010031508",
                "description": "RES MARIA ARIAS TABERA",
                "name": "MARIA ARIAS TABERA",
                "@type": "BillingAccount"
            },
            "validFor": {
                "startDateTime": "2021-08-18T00:00:00.000-04:00",
                "endDateTime": "2021-09-09T00:00:00.000-04:00"
            }
        }
    ],
    "billStructure": {
        "cycleSpecification": {
            "name": "monthly Billing",
            "dateShift": 18,
            "frequency": "monthly"
        },
        "presentationMedia": [
            {
                "name": "Mail"
            }
        ]
    },
    "contact": [
        {
            "contactName": "MARIA ARIAS TABERA",
            "contactType": "Primary",
            "partyRoleType": "Owner",
            "contactMedium": [
                {
                    "mediumType": "PostalAddress",
                    "preferred": true,
                    "characteristic": {
                        "contactType": "BillingAdress",
                        "city": "SAN JUAN",
                        "country": "USA",
                        "postCode": "009171920",
                        "street1": "LIBERTY UNIVERSITY 20 AVE P DE LEON"
                    }
                },
                {
                    "mediumType": "PostalAddress",
                    "preferred": true,
                    "characteristic": {
                        "contactType": "AccountAdress",
                        "city": "SAN JUAN",
                        "country": "USA",
                        "postCode": "009171920",
                        "street1": "LIBERTY UNIVERSITY 20 AVE P DE LEON"
                    }
                },
                {
                    "mediumType": "Phone",
                    "characteristic": {
                        "contactType": "Home",
                        "phoneNumber": "7874506508"
                    }
                },
                {
                    "mediumType": "Phone",
                    "characteristic": {
                        "contactType": "Business",
                        "phoneNumber": "7874506508"
                    }
                }
            ],
            "relatedParty": {
                "id": "5625",
                "name": "MARIA ARIAS TABERA",
                "role": "Owner",
                "@referredType": "RelatedParty"
            }
        }
    ],
    "creditLimit": {
        "unit": "USD",
        "value": 100.00
    },
    "defaultPaymentMethod": {
        "id": "E",
        "name": "EFT"
    },
    "financialAccount": {
        "id": "2063",
        "accountBalance": {
            "balanceType": "ReceivableBalance",
            "amount": {
                "unit": "USD",
                "value": 18
            },
            "validFor": {
                "startDateTime": "2026-01-18T00:00:00.000-04:00",
                "endDateTime": "2026-02-17T00:00:00.000-04:00"
            }
        },
        "@referredType": "FinancialAccount"
    },
    "paymentPlan": [
        {
            "paymentFrequency": "01",
            "planType": "Auto Pay Enable"
        }
    ],
    "characteristic": [
        {
            "name": "LocationId",
            "value": "00917192000763"
        },
        {
            "name": "DunningGroup",
            "value": "090"
        },
        {
            "name": "autoPayDate",
            "value": "2026-02-05T00:00:00.000-04:00"
        },
        {
            "name": "DebitDay",
            "value": "05"
        },
        {
            "name": "Customer",
            "valueType": "Object",
            "value": {
                "id": "1101525212838",
                "firstName": "MARIA",
                "lastName": "ARIAS TABERA"
            }
        }
    ],
    "relatedParty": [
        {
            "id": "1101525212838",
            "name": "MARIA ARIAS TABERA",
            "role": "Customer",
            "@referredType": "Customer"
        }
    ],
    "@type": "BillingAccount"
}

Possible response error

In this section all the possible data structures received by the client are defined and that must be considered as unsatisfactory when responding to the method.

[ 400 ]

Bad Request - the request could not be understood by the server due to malformed syntax. The client SHOULD NOT repeat the request without modifications.

{
  "errors" : [{
      "code" : 400,
      "message" : "The request is invalid or not properly formed.",
      "description" : "Malformed request syntax, invalid request message framing, or deceptive request routing."
    }]
}
[ 401 ]

Unauthorized - The request has not been applied because it lacks valid authentication credentials for the target resource.

{
  "errors" : [{
      "code" : 401,
      "message" : "The user could not be authenticated for this request.",
      "description" : "The request has not been applied because it lacks valid authentication credentials for the target resource."
    }]
}
[ 404 ]

Not Found - server has not found a resource with that URI. This may be temporary and permanent condition. This status code is commonly used when the server does not wish to reveal exactly why the request has been refused, or when no other response is applicable.

{
    "message": "Resource not found"
}
[ 500 ]

Internal Server Error - server encountered an error processing request. This should not happen normally, but it is a generic error message, given when no more specific message is suitable.

{
  "errors" : [{
      "code" : 500,
      "message" : "Internal Server Error",
      "description": "The request failed due to an internal error."
    }]
}
[ 501 ]

Not implemented - indicates that the server does not support the functionality required to fulfill the request. This is the appropriate response when the server does not recognize the request method and is not capable of supporting it for any resource.

{
  "errors" : [{
      "code" : 501,
      "message" : "Not implemented",
      "description" : "Operation GET /service for Business Id: xxxx not implemented"
    }]
  }

Response

Definitions

Each of the request parameters is detailed.

nametypedescriptionRequired
idstringaccount idN
accountTypestringtype of the accountN
descriptionstringcompany name or full nameN
lastModifiedstringlast modified dateN
namestringname of the customerN
paymentStatusstringDelinquency status of the accountN
statestringConnect status Ex: voluntary disconnect, Non-Pay Disc, Chard Off, NORMALN
accountBalanceArrayN
accountBalance.amount.unitstringCurrency of the balance amountN
accountBalance.amount.valuenumberbalance amountN
accountBalance.balanceTypestringReceivableBalance (hard coded)N
accountBalance.validFor.startDateTimestringBilling start dateN
accountBalance.validFor.endDateTimestringBilling end dateN
accountRelationshipArrayN
accountRelationship.relationshipTypestringcontains (hard coded)N
accountRelationship.account.idstringaccount idN
accountRelationship.account.descriptionstringtype + company name or full nameN
accountRelationship.account.namestringcompany name or full nameN
accountRelationship.account.@typestringBillingAccount (hard coded)N
accountRelationship.validFor.startDateTimestringconnection date timeN
accountRelationship.validFor.endDateTimestringdisconnection date timeN
billStructureArrayN
billStructure.cycleSpecificationobjectN
billStructure.cycleSpecification.namestringName of billing Ex: Monthly billing, bi-monthly billingN
billStructure.cycleSpecification.dateShiftnumbercycle day of the billingN
billStructure.cycleSpecification.frequencystringType of billing Ex: Monthly, bi-monthlyN
billStructure.presentationMediaArrayN
billStructure.presentationMedia.namestringStatement preference Ex: Mail, EmailN
contactArrayN
contact.contactNameStringcontact nameN
contact.contactTypeStringType of the contactN
contact.partyRoleTypeStringRole of the customerN
contact.contactMediumArrayN
contact.contactMedium.mediumTypeStringType of the contact detailsN
contact.contactMedium.preferredBooleanPreferred contact medium or not Ex: true or falseN
contact.contactMedium.characteristic.contactTypeStringType of contactN
contact.contactMedium.characteristic.cityStringcity of the customerN
contact.contactMedium.characteristic.countryStringcountry of the customerN
contact.contactMedium.characteristic.postCodeStringpostal code of the customerN
contact.contactMedium.characteristic.street1Stringstreet name of the customerN
contact.contactMedium.characteristic.phoneNumberStringphone number of the customerN
contact.relatedParty.idStringtax identifierN
contact.relatedParty.nameStringcompany or first + last nameN
contact.relatedParty.roleString"Owner" (hard coded)N
contact.relatedParty.@referredTypeStringRelatedParty (hard coded)N
creditLimit.unitStringCurrency of the credit limitN
creditLimit.valueNumberCredit limit of the customerN
defaultPaymentMethod.idStringpayment method idN
defaultPaymentMethod.nameStringname of the payment method. Ex: Credit Card, EFT, Non Default Payment MethodN
financialAccount.idString2063 (hard coded)N
financialAccount.accountBalance.balanceTypeStringReceivableBalance (hard coded)N
financialAccount.accountBalance.amount.unitStringCurrencyN
financialAccount.accountBalance.amount.valueNumberDay of the cycleN
financialAccount.accountBalance.validFor.startDateTimeStringBilling account start dateN
financialAccount.accountBalance.validFor.endDateTimeStringBilling account end dateN
financialAccount.@referredTypeStringFinancialAccount (hard coded)N
paymentPlanArrayN
paymentPlan.paymentFrequencyStringFrequency of the billingN
paymentPlan.planTypeStringPlan type. Ex: Auto Pay Enable, Auto Pay DisableN
characteristicArrayN
characteristic.nameStringName of the details. Ex: LocationId, DunningGroup etcN
characteristic.valueString or ObjectRespective valuesN
characteristic.value.idStringcustomer idN
characteristic.value.firstNameStringfirst name of the customerN
characteristic.value.lastNameStringlast name of the customerN
characteristic.valueTypeStringType of value. Ex: objectN
relatedPartyArrayN
relatedParty.idStringcustomer idN
relatedParty.nameStringcompany or first + last nameN
relatedParty.roleStringCustomer (hard coded)N
relatedParty.@referredTypeStringCustomer (hard coded)N
@typeStringBillingAccount (hard coded)N

Reviews